package com.ds.springboot.service;

import com.ds.springboot.entity.User;
import com.ds.springboot.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: springboot-1-cache
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-05-26
 **/
@Service
public class UserService {
    @Resource
    UserMapper userMapper;

    public User login(String userName,String pwd){
        User login = userMapper.login(userName, pwd);
        return login;
    }
}
